/**
 * Created by hezhijie on 2016/12/13.
 */
var headerModule = angular.module("headerModule", []);
headerModule.controller("headerCtrl", ['$scope',
    function ($scope) {
        function init(){
            Metronic.handleDropdownHover();
            Metronic.handleDropdowns();
            Layout.initHeader();
            Metronic.handleScrollers();
            $scope.operator=$scope.$cookieStore.get("OPERATOR")
        }

        $scope.logout=function(){
            $scope.$cookieStore.remove("TOKEN")
            $scope.$state.go("login")
        }

        init();
    }
]);
